{"version":3,"file":"link.bundle.map.js","names":["this","BX","Landing","UI","exports","landing_ui_field_basefield","main_core","_","t","_t","Link","BaseField","constructor","data","super","Field","apply","arguments","options","Dom","remove","input","onValueChangeHandler","onValueChange","content","Type","isPlainObject","Utils","clone","text","trim","href","escapeText","target","skipContent","detailPageMode","containsImage","containsHtml","isStringFilled","replace","Text","placeholder","Loc","getMessage","selector","decode","textOnly","hrefInput","getValue","typeHrefs","page","value","firstElementChild","textNode","querySelector","innerText","event","Event","BaseEvent","compatData","emit","bind","layout","hidden","header","LinkUrl","title","contentRoot","onInput","onHrefInput","disallowType","disableBlocks","allowedTypes","sourceField","onNewPage","innerHTML","targetInput","DropdownInline","className","items","_self","_blank","_popup","stateNode","Tag","render","mediaLayout","create","props","wrapper","createWrapper","left","createLeft","center","createCenter","right","createRight","append","createTargetInput","getRightData","hasOwnProperty","showElement","selectedHrefType","getSelectedHrefType","start","hideElement","typeData","getTypeData","checkVisibleMediaPanel","subscribe","gridCenterCell","hideInput","gridCenter","addClass","newCenterCellButton","createCenterCellButton","button","removeClass","prepareGridCenter","isUndefined","selectedTargetValueByUser","setValue","disableMedia","adjustTarget","adjustVideo","adjustEditLink","readyToSave","static","element","type","getPlaceholderType","pageType","Env","getInstance","getType","isString","length","getPageData","then","result","urlMask","Main","params","sef_url","landing_view","siteId","id","slice","call","querySelectorAll","forEach","editLink","createEditLink","children","attrs","TARGET_BLANK","isChanged","JSON","stringify","prepareHrefInput","prepareTargetInput","html","htmlToElement","matches","decodeDataValue","prepareTarget","isAvailableMedia","mediaService","getEmbedURL","getDynamic","getAttribute","startsWith","enable","disable","hrefType","test","TARGET_SELF","enableMedia","isDataLoaded","addCustomEvent","showMediaPreview","hideMediaPreview","hideMediaSettings","showMediaSettings","mediaSettings","getSettingsForm","ServiceFactory","MediaService","Factory","getRelevantClass","loader","Loader","mode","offset","top","video","show","getURLPreviewElement","hide","targetValueBeforeAutochange","embedURL","getQueryParams","targetType","showMediaPanel","hideMediaPanel","setHr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